﻿using Rbac.Contracts.DTO.InPut;
using Rbac.Contracts.DTO.OutPut;
using Rbac.Domain.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Rbac.Contracts.Interface
{
	public interface IRolePermissionServer
	{
		/// <summary>
		/// 为角色分配权限
		/// </summary>
		/// <param name="input"></param>
		/// <returns></returns>
		int DistributeRolePermissions(DistributeRolePermissionsInput input);
		/// <summary>
		/// 权限角色获取权限列表
		/// </summary>
		/// <param name="roleId"></param>
		/// <returns></returns>
		List<PermissionDTO> GetPermissionsByRoleId(int roleId);
	}
}
